package com.meixiang.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：黑哥 on 2016/6/26 12:05
 */
public class OrderResult implements Parcelable {
    private String orderAmount;
    private String orderId;
    private String type;

    public OrderResult(String orderAmount, String orderId, String type) {
        this.orderAmount = orderAmount;
        this.orderId = orderId;
        this.type = type;
    }

    public OrderResult(String orderAmount, String orderId) {
        this.orderAmount = orderAmount;
        this.orderId = orderId;
    }

    public String getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(String orderAmount) {
        this.orderAmount = orderAmount;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public String toString() {
        return "OrderResult{" +
                "orderAmount='" + orderAmount + '\'' +
                ", orderId='" + orderId + '\'' +
                ", type='" + type + '\'' +
                '}';
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.orderAmount);
        dest.writeString(this.orderId);
        dest.writeString(this.type);
    }

    public OrderResult() {
    }

    protected OrderResult(Parcel in) {
        this.orderAmount = in.readString();
        this.orderId = in.readString();
        this.type = in.readString();
    }

    public static final Parcelable.Creator<OrderResult> CREATOR = new Parcelable.Creator<OrderResult>() {
        @Override
        public OrderResult createFromParcel(Parcel source) {
            return new OrderResult(source);
        }

        @Override
        public OrderResult[] newArray(int size) {
            return new OrderResult[size];
        }
    };
}
